package com.jianjun.ktui

import androidx.compose.material3.CalendarLocale
import androidx.compose.material3.ExperimentalMaterial3Api

interface Platform {
    val name: String
    val dynamicColor: Boolean
        get() = false
    val isAppBar: Boolean
        get() = false
    val urlRuoYi: String
        get() = "http://127.0.0.1:8080"
}

enum class Method {
    GET, POST, PUT, DELETE
}

expect fun getPlatform(): Platform

expect suspend fun <T> httpRuoYi(path: String, params: MutableMap<String, Any>, method: Method): T

@OptIn(ExperimentalMaterial3Api::class)
expect fun defaultLocale(): CalendarLocale
